<?php

namespace app\api\controller;

use app\services\ConfigService;
use app\services\EmailService;
use app\services\ModelService;
use app\services\MusicService;
use app\services\NameCardService;
use app\services\OrderService;
use app\services\UpLineService;
use app\services\UserCouponService;
use app\services\UserLevelService;
use app\services\UserPropertyService;
use app\services\UserService;
use app\services\UserTeamService;
use app\services\UserWorkService;
use app\services\WechatMiniProgramShippingService;
use Overtrue\Pinyin\MemoryFileDictLoader;
use Overtrue\Pinyin\Pinyin;
use plugin\admin\app\model\Area;
use plugin\admin\app\model\Music;
use plugin\admin\app\model\Order;
use plugin\admin\app\model\Rule;
use support\Cache;
use support\coze\Factory;
use support\coze\OauthClient;
use support\Db;
use support\ImgCut;
use support\JRTools;
use support\KuaidiBird;
use support\Paypal;
use support\PdfToImg;
use support\Request;

class TestController
{
    public function test(Request $request)
    {
        $app = OauthClient::getInstance(getenv('COZE_APP_ID'), config_path() . '/coze/private_key.pem', getenv('COZE_PUBLIC_KEY_ID'));
        $app->setDebug(true); // 启用调试模式
        $res = $app->uploadFile(public_path() . '/uploads/test.docx');
        print_r($res);
    }
}